export default {
  // 命名空间必须加上，不然这就不是一个模块
  namespaced: true,
  state: {
    yesOrNo: 'vuex默认值- ',
    token: wx.getStorageSync('ugo_token') || ''
  },
  mutations: {
    updateYesOrNo(state, payload='xxxx') {
      state.yesOrNo = payload
    },
    updateToken(state, payload){
      state.token = payload
      wx.setStorage({
        key: 'ugo_token',
        data: payload
      })
    }
  },
  actions: {}
}